package com.atstudy.headline.web.admin.service.impl;

import com.atstudy.headline.entity.Contents;
import com.atstudy.headline.web.admin.mapper.ContentsMapper;
import com.atstudy.headline.web.admin.service.ContentsService;
import com.atstudy.headline.web.admin.vo.contents.CommentsInfoQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author A
* @description 针对表【contents(内容基础信息表)】的数据库操作Service实现
* @createDate 2025-06-12 13:55:56
*/
@Service
public class ContentsServiceImpl extends ServiceImpl<ContentsMapper, Contents>
    implements ContentsService {
    @Autowired
    private ContentsMapper contentsMapper;


    @Override
    public IPage<Contents> pageInfoByContents(IPage<Contents> page, CommentsInfoQueryVo queryVo) {
        return contentsMapper.pageInfoByContents(page,queryVo);
    }
    @Override
    public boolean updateStatus(Contents contents) {
        return updateById(contents);
    }
}




